run{ }
run{ }
Runner{ }
run{ }
run{
  TestContainer container=null;
    container=new TestContainer(beansXml,classes);
    container.startContainer().ensureRequestActive();
    runnable.run(container.getBeanManager(container.getDeployment().getBeanDeploymentArchives().iterator().next()));
  finally {
    if (container != null) {
      container.stopContainer();
}
runAndExpect{ }
runAndExpect{
    if (!expected.getClass().isAssignableFrom(e.getClass())) {
    if (expected.getMessage() == null) {
      return;
    String errorCode=expected.getMessage().substring(0,11);
    if (e.getMessage().startsWith(errorCode)) {
      return;
}
TestContainer{
  this(new FlatDeployment(new BeanDeploymentArchiveImpl(beansXml,classes)));
}
TestContainer{
  this.bootstrap=new WeldBootstrap();
  this.deployment=new FlatDeployment(new BeanDeploymentArchiveImpl(bootstrap.parse(beansXml),classes));
}
TestContainer{
  this.bootstrap=new WeldBootstrap();
  this.deployment=new FlatDeployment(new BeanDeploymentArchiveImpl(beanArchiveId,bootstrap.parse(beansXml),classes));
}
TestContainer{
  this(new FlatDeployment(new BeanDeploymentArchiveImpl(beansXml,asList(classes))));
}
TestContainer{
  this(new FlatDeployment(new BeanDeploymentArchiveImpl(asList(classes))));
}
TestContainer{
  this.bootstrap=new WeldBootstrap();
}
ensureRequestActive{
  RequestContext requestContext=instance().select(RequestContext.class,UnboundLiteral.INSTANCE).get();
  requestContext.activate();
  BoundSessionContext sessionContext=instance().select(BoundSessionContext.class).get();
  sessionContext.associate(sessionStore);
  sessionContext.activate();
}
startContainer{
  this.sessionStore=new HashMap<String,Object>();
  bootstrap.startContainer(Environments.EE_INJECT,deployment).startInitialization().deployBeans().validateBeans().endInitialization();
}
getBeanManager{
  return bootstrap.getManager(beanDeploymentArchive);
}
getDeployment{ }
stopContainer{
  RequestContext requestContext=instance().select(RequestContext.class,UnboundLiteral.INSTANCE).get();
  if (requestContext.isActive()) {
    requestContext.invalidate();
    requestContext.deactivate();
  BoundSessionContext sessionContext=instance().select(BoundSessionContext.class).get();
  if (sessionContext.isActive()) {
    sessionContext.invalidate();
    sessionContext.deactivate();
    sessionContext.dissociate(sessionStore);
  bootstrap.shutdown();
}
instance{
  return Container.instance().deploymentManager().instance().select(Context.class);
}
getBootstrap{ }
getSessionStore{ }
